From 04b7db61620ea0d41d317c531543d11dfe5b5cc6 Mon Sep 17 00:00:00 2001 From: Wangshan Lu Date: Sat, 28 May 2016 18:05:58 +0800 Subject: [PATCH] Rename main thread from '
' to 'main'. This pull request resolves the test failure in rust pull request 33803 --- tests/bench.rs | 2 +- tests/install.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bench.rs b/tests/bench.rs index ea8f55740..7a66ccc67 100644 --- a/tests/bench.rs +++ b/tests/bench.rs @@ -187,7 +187,7 @@ test bench_hello ... ") .with_stderr_contains(format!("\ [COMPILING] foo v0.5.0 ({}) [RUNNING] target[..]release[..]foo-[..] -thread '
' panicked at 'assertion failed: \ +thread 'main' panicked at 'assertion failed: \ `(left == right)` (left: \ `\"hello\"`, right: `\"nope\"`)', src[..]foo.rs:14 [..] diff --git a/tests/install.rs b/tests/install.rs index 0547c4419..1b6f36540 100644 --- a/tests/install.rs +++ b/tests/install.rs @@ -715,7 +715,7 @@ fn reports_unsuccessful_subcommand_result() { execs().with_status(0).with_stdout_contains(" fail\n")); assert_that(cargo_process("fail"), execs().with_status(101).with_stderr_contains("\ -thread '
' panicked at 'explicit panic', [..] +thread 'main' panicked at 'explicit panic', [..] ")); } -- 2.30.2